package com.roselism.mobilesafe.library;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by simon on 2016/4/27.
 */
public class MarqueeTextView extends TextView {

    public MarqueeTextView(Context context) {
        super(context);
    }

    public MarqueeTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MarqueeTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    /**
     * 是否获取了焦点
     * 跑马灯的效果只有在获取了焦点的情况下才会运行，所以强制让他获取焦点不管实际情况如何
     *
     * @return
     */
    @Override
    public boolean isFocused() {
        return true;
    }
}
